package com.jason.account.controller;

import com.jason.account.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/accountChange")
public class AccountController {
    @Autowired
    AccountService accountService;
    @RequestMapping("/addMoney")
    public boolean addMoney(@RequestParam("accId") Integer accId, @RequestParam("amount") Integer amount){
        return accountService.addMoney(accId,amount);
    }
}
